body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f9;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    color: #333;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #4a4e69;
    margin-bottom: 25px;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-form input,
.message-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.message-form input:focus,
.message-form textarea:focus {
    outline: none;
    border-color: #7b42f6;
}

.message-form textarea {
    resize: vertical;
    min-height: 100px;
}

#submit-btn {
    padding: 12px;
    background-color: #7b42f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#submit-btn:hover {
    background-color: #6a3abf;
    transform: translateY(-2px);
}

hr {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 30px 0;
}

.message-list-container {
    margin-top: 20px;
}

#no-message-tip {
    text-align: center;
    color: #999;
    font-style: italic;
}

.hidden {
    display: none;
}

.message-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message-item:last-child {
    margin-bottom: 0;
}

.message-item .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #888;
}

.message-item .author {
    font-weight: bold;
    color: #555;
    font-size: 16px;
}

.message-item .content {
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.delete-btn {
    background: none;
    border: none;
    color: #c93b3b;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.delete-btn:hover {
    opacity: 1;
}